<template>
    <div>
        <div class="search">
            <input type="text" placeholder="请输入要搜索的医师" />
            <span>搜索</span>
        </div>
        <el-table
    :data="tableData"
    border
    style="width: 100%;">
    <el-table-column
      prop="num"
      label="序号"
      align="center"
      width="120">
    </el-table-column>
    <el-table-column
      prop="docGarde"
      label="医师等级"
      align="center"
      width="160">
    </el-table-column>
    <el-table-column
      prop="dName"
      label="医师姓名"
      align="center"
      width="120">
    </el-table-column>
    <el-table-column
      prop="year"
      label="年限"
      align="center"
      width="240">
    </el-table-column>
    <el-table-column label="医师资格证书"
      align="center"
    >
      <template slot-scope="scope">
        <img :src="scope.row.ImageUrl" style="height: 50px"/>
      </template>
    </el-table-column>
    <el-table-column label="医师执业证书"
      align="center"
    >
      <template slot-scope="scope">
        <img :src="scope.row.ImageUrl" style="height: 50px"/>
      </template>
    </el-table-column>
    <el-table-column
      prop="quesNum"
      label="问诊次数"
      align="center"
      width="120">
    </el-table-column>
    <el-table-column
      prop="money"
      label="总收入金额"
      align="center"
      width="120">
    </el-table-column>
    <el-table-column
      prop="good"
      label="好评度"
      align="center"
      width="160">
    </el-table-column>
    <el-table-column
      fixed="right"
      label="操作"
      align="center"
      width="200">
      <template slot-scope="scope">
        <el-button @click="handleClick(scope.row)" type="text" size="small">详情</el-button>
      </template>
    </el-table-column>
  </el-table>
    </div>
</template>

<script>
export default {
  data () {
    return {
      tableData: [{
        num: '1',
        docGarde: '主治医师',
        dName: '王振',
        year: '5',
        qualification: '',
        certificate: '',
        quesNum: '4354666',
        money: '23445.00',
        good: '99%',
        ImageUrl: 'https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3363295869,2467511306&fm=26&gp=0.jpg'
      }, {
        num: '2',
        docGarde: '主治医师',
        dName: '李双双',
        year: '5',
        qualification: '',
        certificate: '',
        quesNum: '456456',
        money: '23445.00',
        good: '98%',
        ImageUrl: 'https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3363295869,2467511306&fm=26&gp=0.jpg'
      }, {
        num: '3',
        docGarde: '主治医师',
        dName: '张三丰',
        year: '10',
        qualification: '',
        certificate: '',
        quesNum: '324624',
        money: '23445.00',
        good: '97%',
        ImageUrl: 'https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3363295869,2467511306&fm=26&gp=0.jpg'
      }]
    }
  },
  methods: {
    handleClick (row) {
      console.log(row)
      this.$router.push('/hms/doctorDetail')
    }
  }
}
</script>

<style scoped>
.search {
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: right;
}
input {
    text-align: center;
}
.search>span {
    display: inline-block;
    color: white;
    background: steelblue;
    padding: 5px 15px;
    height: 10px;
    line-height: 10px;
    font-size: 12px;
    margin: 0 10px;
    border-radius: 5px;
}
</style>
